import http from "@/http/index"


export default {

    selectById: {
        name: "根据id查询商品信息",
        url: "/api/product/getById",
        call: async function (params: any = {}) {
            return await http.get(this.url, params)
        }
    },
    selectPage: {
        name: "商品列表",
        url: "/api/product/list",
        call: async function (params: any = {}) {
            return await http.get(this.url, params)
        }
    },
    selectByCondition: {
        name: "根据条件查询商品信息",
        url: "/api/product/get",
        call: async function (params: any = {}) {
            return await http.get(this.url, params)
        }
    },
}
